DisCSP.DistributedCSP
Class ServerThread

java.lang.Object
  extended byjava.lang.Thread
      extended byDisCSP.DistributedCSP.ServerThread
All Implemented Interfaces:
java.lang.Runnable

class ServerThread
extends java.lang.Thread


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ServerThread(java.net.Socket s, DisConstraintProblem dis, Neighbourhood n, AgentState st, java.io.PrintStream o)
          Costruttore di ServerThread
 
Method Summary
 void run()
          Metodo run del Thread
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerThread

public ServerThread(java.net.Socket s,
                    DisConstraintProblem dis,
                    Neighbourhood n,
                    AgentState st,
                    java.io.PrintStream o)
             throws java.io.IOException
Costruttore di ServerThread

Parameters:
s - la socket
dis - il problema associato all'agente
n - i vicini dell' agente
st - lo stato dell'agente
o - il PrintStream su cui direzionare l'output
Method Detail

run

public void run()
Metodo run del Thread